﻿<%@ Page Language="VB" MasterPageFile="~/AdmMaster.master" AutoEventWireup="false" CodeFile="AdmRnkGerenciamentoRanking.aspx.vb" Inherits="ranking_AdmRnkGerenciamentoRanking"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table>
        <tr>
            <td style="width: 22px; height: 22px;">
            </td>
            <td colspan="6" style="height: 22px">
                <p class="titulo-pagina">
                    <asp:Label ID="lblTitulo" runat="server" style="font-weight: 700" Text="Label"></asp:Label>
                </p>
            </td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                &nbsp;</td>
            <td style="width: 62px">
                &nbsp;</td>
            <td style="width: 62px">
                &nbsp;</td>
            <td style="width: 134px">
                &nbsp;</td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                <asp:Label ID="lblCaptionId" runat="server" Text="Id:"></asp:Label>
            </td>
            <td colspan="3">
                <asp:Label ID="lblId" runat="server" Font-Bold="True" Text="Label"></asp:Label>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                Tipo:</td>
            <td colspan="3">
                <asp:Label ID="lblTipo" runat="server" style="font-weight: 700" Text="Label"></asp:Label>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                &nbsp;</td>
            <td colspan="3">
                &nbsp;</td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px" valign="middle">
                Nome:<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtNome" ErrorMessage="Por favor preencha o Nome do Evento." 
                    ValidationGroup="Evento">*</asp:RequiredFieldValidator>
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtNome" runat="server" CausesValidation="True" 
                    ValidationGroup="Evento" Width="390px"></asp:TextBox>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                Planilha:<asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
                    runat="server" ControlToValidate="txtNome" 
                    ErrorMessage="Por favor preencha o Nome do Evento." ValidationGroup="Evento">*</asp:RequiredFieldValidator>
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtPlanilha" runat="server" CausesValidation="True" 
                    Width="390px"></asp:TextBox>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnTestar" runat="server" SkinID="btnPadrao" 
                    Text="Testar" Width="78px" />
            </td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                &nbsp;</td>
            <td colspan="3">
                &nbsp;</td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px; height: 26px;">
            </td>
            <td style="width: 209px; height: 26px;">
                Data Início:<asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                    runat="server" ControlToValidate="txtDtInicio" 
                    ErrorMessage="Por favor preencha a Data Inicial do Evento." 
                    ValidationGroup="Evento">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtDtInicio" Display="None" 
                    ErrorMessage="Data de Início Inválida - Utilize DD/MM/AAAA" 
                    SetFocusOnError="True" 
                    ValidationExpression="(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d" 
                    ValidationGroup="Evento">*</asp:RegularExpressionValidator>
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtDtInicio" runat="server" CausesValidation="True" 
                    ValidationGroup="Evento" Width="86px"></asp:TextBox>
                <asp:Label ID="lblErro" runat="server" style="color: #FF0000; font-weight: 700" 
                    Text="Data Início está maior que a Data Fim." Visible="False"></asp:Label>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                Data Fim:<asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
                    runat="server" ControlToValidate="txtDtFim" 
                    ErrorMessage="Por favor preencha a Data Final do Evento." 
                    ValidationGroup="Evento">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtDtFim" Display="None" 
                    ErrorMessage="Data Fim Inválida - Utilize DD/MM/AAAA" 
                    SetFocusOnError="True" 
                    ValidationExpression="(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d" 
                    ValidationGroup="Evento">*</asp:RegularExpressionValidator>
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtDtFim" runat="server" CausesValidation="True" 
                    ValidationGroup="Evento" Width="86px"></asp:TextBox>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                &nbsp;</td>
            <td colspan="3">
                &nbsp;</td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                Produto:</td>
            <td colspan="3">
                <asp:TextBox ID="txtProduto" runat="server" CausesValidation="True" 
                    Width="390px"></asp:TextBox>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                Prêmio:</td>
            <td colspan="3">
                <asp:TextBox ID="txtPremio" runat="server" CausesValidation="True" 
                    Width="390px"></asp:TextBox>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td style="width: 209px">
                &nbsp;</td>
            <td colspan="3">
                &nbsp;</td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td colspan="4">
                <asp:ValidationSummary ID="ValidationSummary2" runat="server" 
                    style="margin-bottom: 0px" ValidationGroup="Evento" />
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td colspan="4">
                <asp:Button ID="btnSalvar" runat="server" BackColor="white" BorderStyle="Solid" 
                    Font-Names="Arial" ForeColor="#F99C5F" Text="Salvar" ValidationGroup="Evento" 
                    Width="105px" />
                &nbsp;
                <asp:Button ID="btnExcluir" runat="server" BackColor="white" 
                    BorderStyle="Solid" Font-Names="Arial" ForeColor="#F99C5F" Text="Excluir" 
                    Width="105px" />
                &nbsp;
                <asp:Button ID="btnVoltar" runat="server" BackColor="white" BorderStyle="Solid" 
                    Font-Names="Arial" ForeColor="#F99C5F" Text="Voltar" Width="105px" />
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td colspan="4">
                &nbsp;</td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td colspan="4">
                <asp:GridView ID="grvRankingTeste" runat="server" SkinID="grvCRUD" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="Nome">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Usuario.Nome") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Usuario.Nome") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Franquia" HeaderText="Franquia" />
                        <asp:BoundField DataField="CPF" HeaderText="CPF" />
                        <asp:BoundField DataField="Pontos" HeaderText="Pontos" />
                    </Columns>
                </asp:GridView>
            </td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 22px">
                &nbsp;</td>
            <td colspan="4">
                &nbsp;</td>
            <td style="width: 19px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
</asp:Content>

